package pers.lonestar.framework.utils.entity;

import java.util.Calendar;
import java.util.Date;

import pers.lonestar.framework.utils.support.annotations.ExcelColumnProperty;
import pers.lonestar.framework.utils.support.annotations.ExcelIgnoreUnannotated;
import pers.lonestar.framework.utils.support.annotations.ExcelSheetProperty;

@ExcelIgnoreUnannotated
@ExcelSheetProperty(index = 0, name = "客户列表")
public class Consumer {
    @ExcelColumnProperty(description = "姓名", index = 0)
    private String name;
    @ExcelColumnProperty(description = "年龄", index = 2)
    private Integer age;
    @ExcelColumnProperty(description = "性别", index = 1)
    private String gender;
    @ExcelColumnProperty(description = "联系方式", index = 3)
    private String phone;
    @ExcelColumnProperty(description = "生日", index = 3)
    private Date birthday;
    @ExcelColumnProperty(description = "签约日期", index = 4)
    private Calendar signingDate;

    public Consumer() {
    }

    public Consumer(String name, Integer age, String gender, String phone, Date birthday, Calendar signingDate) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.phone = phone;
        this.birthday = birthday;
        this.signingDate = signingDate;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return this.age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return this.gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getBirthday() {
        return this.birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Calendar getSigningDate() {
        return this.signingDate;
    }

    public void setSigningDate(Calendar signingDate) {
        this.signingDate = signingDate;
    }

    public String toString() {
        return "Consumer(name=" + this.getName() + ", age=" + this.getAge() + ", gender=" + this.getGender() + ", phone=" + this.getPhone() + ", birthday=" + this.getBirthday() + ", signingDate=" + this.getSigningDate() + ")";
    }
}
